// @ts-nocheck
import { FormItemType } from "@/components/GuatForm/types";

export const typeAddFormItemConfig: FormItemType[] = [
  {
    label: "类型名称",
    field: "type",
    component: "Input",
    required: true,
  },
  {
    label: "是否启用",
    field: "status",
    component: "Switch",
    props: {
      defaultValue: true,
    },
  },
];

export const createActivityFormItemConfig: FormItemType[] = [
  {
    label: "活动名称",
    field: "activityName",
    component: "Input",
    col: 12,
  },
  {
    label: "活动类型",
    field: "activityType",
    component: "InputTag",
    col: 12,
  },
  {
    label: "报名时间",
    field: "baoming",
    component: "RangePicker",
    col: 12,
  },
  {
    label: "活动时间",
    field: "huodong",
    component: "RangePicker",
    col: 12,
  },
  {
    label: "人数限制",
    field: "peopleLimit",
    component: "InputNumber",
    col: 12,
  },
  {
    label: "允许请假",
    field: "qingjia",
    component: "Switch",
    col: 12,
  },
  {
    label: "报名内容",
    field: "content",
    component: "Textarea",
  },
];

export const searchFormItemConfig: FormItemType[] = [
  {
    label: "标题",
    field: "title",
    component: "Input",
  },
  {
    label: "活动类型",
    field: "type",
    component: "Select",
    props: {
      multiple: true,
    },
  },
  {
    label: "报名时间",
    field: "time",
    component: "RangePicker",
  },
  {
    label: "活动时间",
    field: "activityTime",
    component: "RangePicker",
  },
  {
    label: "活动状态",
    field: "status",
    component: "Select",
    options: [
      {
        label: "全部",
        value: 0,
      },
    ],
  },
];
